<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>  
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>  
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>  

<html>  
   <head> 
         <meta name="Generator" content="Easy Struts Xslt generator for Eclipse."> 
         <title>Categories management !</title> 
   </head> 
  	 <body> 
  	 <center>
  	 	<html:form action= "/subscription" focus="subscription">		
			<html:hidden property="methodToCall" value ="update"/>
		
		<br><br>
			<table class="subscriptionTable" cellpadding="5px">
				<tr class="even">	
					<th>Subscribe</th>				
					<th>Category</th>							
				</tr>
				
			<nested:iterate id="category" name="subscriptionForm" property="categories">
				<TR>
					<TD>
					
						<html:multibox property="selectedCategories">
							<bean:write  name = "category" property="categoryId"/>
						</html:multibox> 
					</TD> 
					<TD>
						<nested:write property="categoryName"/>
					</TD> 
				</TR>
			</nested:iterate>			
			
			</table>
		<html:submit/>
		</html:form>
		</center>
  	 	
	</body> 
</html>  	 